package com.zhaohanlin.start;

import org.junit.Test;

/**
 * @author zhaohanlin.test
 */



public class PrintTest {
    @Test
    public void kk() {
        System.out.printf("今年%d岁,我叫%s，%s人\n", 18, "赵瀚霖", "男");

    }

    @Test
    public void kk1() {
        System.out.println("1");
        System.out.println("2");
    }

    @Test
    public void kk2() {
        System.out.print("1");
        System.out.print("\n");
        System.out.print("2");


    }

    @Test
    public void kk3() {
        System.out.printf("这是一个%.2f数", 2.564);
    }

    @Test
    public void q1(){
        System.out.println(1);
        System.out.println(1);
        System.out.println(1+2+3+"4");
        System.out.println("1"+1+1+1+1);


    }

    @Test
    public void q2(){
        System.out.println("111\\n222");
        System.out.println("111\t222");
    }

}
